package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wk1un2.entity.Message;
import com.wk1un2.mapper.MessageMapper;
import com.wk1un2.service.MessageService;
@Service
public class MessageServiceImpl implements MessageService {
	@Autowired
	private MessageMapper MessageMapper;
	@Override
	public List<Message> getAll(int page, int limit, Integer u_id) {
		// TODO Auto-generated method stub
		return MessageMapper.getAll(page, limit, u_id);
	}

	@Override
	public Integer count() {
		// TODO Auto-generated method stub
		return MessageMapper.count();
	}

	@Override
	public Integer add(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return MessageMapper.add(map);
	}

	@Override
	public Integer update(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return MessageMapper.update(map);
	}

}
